package com.taobao.api.request;

import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;

import com.taobao.api.response.WlbImportThreeplOfflineConsignResponse;

/**
 * TOP API: taobao.wlb.import.threepl.offline.consign request
 * 
 * @author top auto create
 * @since 1.0, 2018.07.25
 */
public class WlbImportThreeplOfflineConsignRequest extends BaseTaobaoRequest<WlbImportThreeplOfflineConsignResponse> {
	
	

	/** 
	* 发件人地址库id
	 */
	private Long fromId;

	/** 
	* 资源code
	 */
	private String resCode;

	/** 
	* 资源id
	 */
	private Long resId;

	/** 
	* 交易单号
	 */
	private Long tradeId;

	/** 
	* 运单号
	 */
	private String waybillNo;

	public void setFromId(Long fromId) {
		this.fromId = fromId;
	}

	public Long getFromId() {
		return this.fromId;
	}

	public void setResCode(String resCode) {
		this.resCode = resCode;
	}

	public String getResCode() {
		return this.resCode;
	}

	public void setResId(Long resId) {
		this.resId = resId;
	}

	public Long getResId() {
		return this.resId;
	}

	public void setTradeId(Long tradeId) {
		this.tradeId = tradeId;
	}

	public Long getTradeId() {
		return this.tradeId;
	}

	public void setWaybillNo(String waybillNo) {
		this.waybillNo = waybillNo;
	}

	public String getWaybillNo() {
		return this.waybillNo;
	}

	public String getApiMethodName() {
		return "taobao.wlb.import.threepl.offline.consign";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("from_id", this.fromId);
		txtParams.put("res_code", this.resCode);
		txtParams.put("res_id", this.resId);
		txtParams.put("trade_id", this.tradeId);
		txtParams.put("waybill_no", this.waybillNo);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<WlbImportThreeplOfflineConsignResponse> getResponseClass() {
		return WlbImportThreeplOfflineConsignResponse.class;
	}

	public void check() throws ApiRuleException {
	}
	

}